/*
 ============================================================================
 Name		: FontData.cpp
 Author	  : Den Grigorenko
 Copyright   : Copyright (c) 2008 Den123
 Description : SFontData implementation 
 ============================================================================
 */

#include <aknutils.h> 

#include "FontData.h"

// colors
const TInt KUsedSatPenColor     = 0x4f155d07;
const TInt KUsedSatBrushColor   = 0x6c2cd21e;
const TInt KUnusedSatPenColor   = 0x4f220707;
const TInt KUnusedSatBrushColor = 0x6cbfbfbf;                            	 


void SFontData :: Setup()
{
   // font for satllite labels
   iFont = ( CFont* )AknLayoutUtils :: FontFromId( EAknLogicalFontPrimarySmallFont );

   // sizes for satllite labels
   _LIT( KDemoSatLb, "99" );
   iSatLbW = iFont->TextWidthInPixels( KDemoSatLb ) + 1;
   iSatLbH = iFont->HeightInPixels() - 4;

   // setup colors   
   iUsedLbColor   = KRgbBlack;
   iUnusedLbColor = KRgbDarkGray;
   
   iUsedSatPenColor     = KUsedSatPenColor;
   iUnusedSatPenColor   = KUnusedSatPenColor;
   iUsedSatBrushColor   = KUsedSatBrushColor;
   iUnusedSatBrushColor = KUnusedSatBrushColor;
}

